package com.leased.pojo;

import com.leased.request.BaseEntity;
import java.util.Date;

public class TbItem extends BaseEntity {
    private Integer itemId;

    private Integer userId;

    private String startProvinceAddress;

    private String startCityAddress;

    private String startCountyAddress;

    private String destProvinceAddress;

    private String destCityAddress;

    private String destCountyAddress;

    private Double mileage;

    private String content;

    private String loadingAddress;

    private String unloadingAddress;

    private Integer collectionStatue;

    private Long collectionMoney;

    private String photo1;

    private String photo2;

    private Date pushTime;

    private Integer itemType;

    private Integer itemStatue;

    private String phone;

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getStartProvinceAddress() {
        return startProvinceAddress;
    }

    public void setStartProvinceAddress(String startProvinceAddress) {
        this.startProvinceAddress = startProvinceAddress == null ? null : startProvinceAddress.trim();
    }

    public String getStartCityAddress() {
        return startCityAddress;
    }

    public void setStartCityAddress(String startCityAddress) {
        this.startCityAddress = startCityAddress == null ? null : startCityAddress.trim();
    }

    public String getStartCountyAddress() {
        return startCountyAddress;
    }

    public void setStartCountyAddress(String startCountyAddress) {
        this.startCountyAddress = startCountyAddress == null ? null : startCountyAddress.trim();
    }

    public String getDestProvinceAddress() {
        return destProvinceAddress;
    }

    public void setDestProvinceAddress(String destProvinceAddress) {
        this.destProvinceAddress = destProvinceAddress == null ? null : destProvinceAddress.trim();
    }

    public String getDestCityAddress() {
        return destCityAddress;
    }

    public void setDestCityAddress(String destCityAddress) {
        this.destCityAddress = destCityAddress == null ? null : destCityAddress.trim();
    }

    public String getDestCountyAddress() {
        return destCountyAddress;
    }

    public void setDestCountyAddress(String destCountyAddress) {
        this.destCountyAddress = destCountyAddress == null ? null : destCountyAddress.trim();
    }

    public Double getMileage() {
        return mileage;
    }

    public void setMileage(Double mileage) {
        this.mileage = mileage;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getLoadingAddress() {
        return loadingAddress;
    }

    public void setLoadingAddress(String loadingAddress) {
        this.loadingAddress = loadingAddress == null ? null : loadingAddress.trim();
    }

    public String getUnloadingAddress() {
        return unloadingAddress;
    }

    public void setUnloadingAddress(String unloadingAddress) {
        this.unloadingAddress = unloadingAddress == null ? null : unloadingAddress.trim();
    }

    public Integer getCollectionStatue() {
        return collectionStatue;
    }

    public void setCollectionStatue(Integer collectionStatue) {
        this.collectionStatue = collectionStatue;
    }

    public Long getCollectionMoney() {
        return collectionMoney;
    }

    public void setCollectionMoney(Long collectionMoney) {
        this.collectionMoney = collectionMoney;
    }

    public String getPhoto1() {
        return photo1;
    }

    public void setPhoto1(String photo1) {
        this.photo1 = photo1 == null ? null : photo1.trim();
    }

    public String getPhoto2() {
        return photo2;
    }

    public void setPhoto2(String photo2) {
        this.photo2 = photo2 == null ? null : photo2.trim();
    }

    public Date getPushTime() {
        return pushTime;
    }

    public void setPushTime(Date pushTime) {
        this.pushTime = pushTime;
    }

    public Integer getItemType() {
        return itemType;
    }

    public void setItemType(Integer itemType) {
        this.itemType = itemType;
    }

    public Integer getItemStatue() {
        return itemStatue;
    }

    public void setItemStatue(Integer itemStatue) {
        this.itemStatue = itemStatue;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbItem other = (TbItem) that;
        return (this.getItemId() == null ? other.getItemId() == null : this.getItemId().equals(other.getItemId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getStartProvinceAddress() == null ? other.getStartProvinceAddress() == null : this.getStartProvinceAddress().equals(other.getStartProvinceAddress()))
            && (this.getStartCityAddress() == null ? other.getStartCityAddress() == null : this.getStartCityAddress().equals(other.getStartCityAddress()))
            && (this.getStartCountyAddress() == null ? other.getStartCountyAddress() == null : this.getStartCountyAddress().equals(other.getStartCountyAddress()))
            && (this.getDestProvinceAddress() == null ? other.getDestProvinceAddress() == null : this.getDestProvinceAddress().equals(other.getDestProvinceAddress()))
            && (this.getDestCityAddress() == null ? other.getDestCityAddress() == null : this.getDestCityAddress().equals(other.getDestCityAddress()))
            && (this.getDestCountyAddress() == null ? other.getDestCountyAddress() == null : this.getDestCountyAddress().equals(other.getDestCountyAddress()))
            && (this.getMileage() == null ? other.getMileage() == null : this.getMileage().equals(other.getMileage()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getLoadingAddress() == null ? other.getLoadingAddress() == null : this.getLoadingAddress().equals(other.getLoadingAddress()))
            && (this.getUnloadingAddress() == null ? other.getUnloadingAddress() == null : this.getUnloadingAddress().equals(other.getUnloadingAddress()))
            && (this.getCollectionStatue() == null ? other.getCollectionStatue() == null : this.getCollectionStatue().equals(other.getCollectionStatue()))
            && (this.getCollectionMoney() == null ? other.getCollectionMoney() == null : this.getCollectionMoney().equals(other.getCollectionMoney()))
            && (this.getPhoto1() == null ? other.getPhoto1() == null : this.getPhoto1().equals(other.getPhoto1()))
            && (this.getPhoto2() == null ? other.getPhoto2() == null : this.getPhoto2().equals(other.getPhoto2()))
            && (this.getPushTime() == null ? other.getPushTime() == null : this.getPushTime().equals(other.getPushTime()))
            && (this.getItemType() == null ? other.getItemType() == null : this.getItemType().equals(other.getItemType()))
            && (this.getItemStatue() == null ? other.getItemStatue() == null : this.getItemStatue().equals(other.getItemStatue()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getItemId() == null) ? 0 : getItemId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getStartProvinceAddress() == null) ? 0 : getStartProvinceAddress().hashCode());
        result = prime * result + ((getStartCityAddress() == null) ? 0 : getStartCityAddress().hashCode());
        result = prime * result + ((getStartCountyAddress() == null) ? 0 : getStartCountyAddress().hashCode());
        result = prime * result + ((getDestProvinceAddress() == null) ? 0 : getDestProvinceAddress().hashCode());
        result = prime * result + ((getDestCityAddress() == null) ? 0 : getDestCityAddress().hashCode());
        result = prime * result + ((getDestCountyAddress() == null) ? 0 : getDestCountyAddress().hashCode());
        result = prime * result + ((getMileage() == null) ? 0 : getMileage().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getLoadingAddress() == null) ? 0 : getLoadingAddress().hashCode());
        result = prime * result + ((getUnloadingAddress() == null) ? 0 : getUnloadingAddress().hashCode());
        result = prime * result + ((getCollectionStatue() == null) ? 0 : getCollectionStatue().hashCode());
        result = prime * result + ((getCollectionMoney() == null) ? 0 : getCollectionMoney().hashCode());
        result = prime * result + ((getPhoto1() == null) ? 0 : getPhoto1().hashCode());
        result = prime * result + ((getPhoto2() == null) ? 0 : getPhoto2().hashCode());
        result = prime * result + ((getPushTime() == null) ? 0 : getPushTime().hashCode());
        result = prime * result + ((getItemType() == null) ? 0 : getItemType().hashCode());
        result = prime * result + ((getItemStatue() == null) ? 0 : getItemStatue().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        return result;
    }
}